<?php /* Smarty version 2.6.18, created on 2012-09-17 09:14:15
         compiled from modules/multi.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'modules/multi.tpl', 45, false),)), $this); ?>
<h1><?php echo $this->_tpl_vars['lang']['multi_welcome_title']; ?>
</h1>
<p><?php echo $this->_tpl_vars['lang']['multi_welcome_message']; ?>
</p>

<div id="searchbox">
	<form action="multi.php" method="post">
		<div align="center" style="font-size:1em;">
			<input checked="checked" type="radio" name="by" value="city" />
			<?php echo $this->_tpl_vars['lang']['multi_search_by_city']; ?>

        	
        	<input type="radio" name="by" value="name" />
        	<?php echo $this->_tpl_vars['lang']['multi_search_by_name']; ?>

		</div>

		<div align="center" style="padding:10px;">
			<input type="text" name="search-city" style="margin-right:20px;"/>
			<input type="submit" name="search-restaurants" value="Buscar" style="padding:10px;" />
      </div>
	</form>
</div>

<div id="searchresults">
	<?php if ($this->_tpl_vars['search_results']['0']['id'] == ""): ?>
		<p style="color:red;font-weight:bold">
    		<?php echo $this->_tpl_vars['lang']['multi_not_found']; ?>

  		</p>
  	<?php else: ?>
  		<?php if ($this->_tpl_vars['search_results_open']['0']['id'] != ""): ?>
  	  		<div align="center">
  				¡¡¡¡ ABIERTOS !!!!!!
  			</div>
  		
  			<?php $_from = $this->_tpl_vars['search_results_open']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
  				<div align="center" class="search_result">
  					<table width="95%" border="0">
  						<tr>
  							<td align="center" width="33%">
  								<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
">
  									<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" width="100" border="0" />
  								</a>
  							</td>				
						
							<td align="center" valign="top" width="33%">
						 		<h2>
						 			<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
">
						 				<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

      							</a>
      						</h2>

      						<br />
      					
      						<?php echo $this->_tpl_vars['sr']['description']; ?>

  							</td>
  						
  							<td align="right" valign="top" width="33%">
								<img src="images/<?php echo $this->_tpl_vars['sr']['status']; ?>
.gif">
  							</td>
  						</tr>
  					
  						<tr>
    						<td colspan="2" align="left">
	    						Dirección:
    							<b><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</b>
    						
    							<br />				
      						Teléfono:
      						<b><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['phone'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</b>
      					</td>
    					
    						<td align="right" valign="bottom">
      						<p>
        							<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
"><?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>
</a> 
      						</p>
    						</td>
    					</tr>
    				</table>
    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php endif; ?>
    		
    	<?php if ($this->_tpl_vars['search_results_close']['0']['id'] != ""): ?>
			<div align="center">
  				¡¡¡¡ CERRADOS !!!!!!
  			</div>
  			
    		<?php $_from = $this->_tpl_vars['search_results_close']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
  				<div align="center" class="search_result">
  					<table width="95%" border="0">
  						<tr>
  							<td align="center" width="33%">
  								<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
">
  									<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" width="100" border="0" />
  								</a>
  							</td>				
						
							<td align="center" valign="top" width="33%">
						 		<h2>
						 			<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
">
						 				<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

      							</a>
      						</h2>

      						<br />
      					
      						<?php echo $this->_tpl_vars['sr']['description']; ?>

  							</td>
  						
  							<td align="right" valign="top" width="33%">
								<img src="images/<?php echo $this->_tpl_vars['sr']['status']; ?>
.gif">
  							</td>
  						</tr>
	  					
  						<tr>
    						<td colspan="2" align="left">
    							Dirección:
    							<b><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</b>
    						
    							<br />				
      						Teléfono:
      						<b><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['phone'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</b>
      					</td>
    					
    						<td align="right" valign="bottom">
      						<p>
        							<a href="index.php?site=<?php echo $this->_tpl_vars['sr']['rid']; ?>
"><?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>
</a> 
      						</p>
    						</td>
    					</tr>
    				</table>
    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php endif; ?>
    	
    	<div style="padding:10px">
    		<?php echo $this->_tpl_vars['pagination']; ?>

    	</div>
    <?php endif; ?>
    
    </div>
    	<p>
    		<br />
    		<br />
    		<br />
       </p>
       
       <p>&nbsp;</p>
       <p>&nbsp;</p>
       <p>&nbsp;</p>